package thread;

class MyThreadDemo2 implements Runnable{
    @Override
    public void run() {
        System.out.println("saa");
    }
}

public class ThreadDemo2 {
    public static void main(String[] args) {
        Runnable runnable=new MyThreadDemo2();
        Thread thread=new Thread(runnable);
        thread.start();
    }
}
